package com.deep.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.deep.common.utils.PageUtils;
import com.deep.member.model.entity.MemberEntity;
import com.deep.member.model.vo.MemberUserRegisterVO;
import com.deep.member.model.vo.SocialUserVO;
import com.deep.member.model.vo.UserLoginVO;

import java.util.Map;

/**
 * 会员
 *
 * @author deep
 * @email ${email}
 * @date 2022-01-13 17:30:43
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 用户注册
     */
    void register(MemberUserRegisterVO vo);

    /**
     * 用户登录
     */
    MemberEntity login(UserLoginVO vo);

    /**
     * 社交登录
     */
    MemberEntity socialLogin(SocialUserVO socialUser) throws Exception;
}

